mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
remove dead code
This commit is contained in:
parent
06470c1366
commit
5f0a9ed572
@ -1,19 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# API Controller for resources of type iCalendar
|
||||
class API::IcalController < API::ApiController
|
||||
respond_to :json
|
||||
|
||||
def externals
|
||||
require 'net/http'
|
||||
require 'uri'
|
||||
|
||||
ics = Net::HTTP.get(URI.parse('https://calendar.google.com/calendar/ical/sylvain%40sleede.com/public/basic.ics'))
|
||||
|
||||
require 'icalendar'
|
||||
require 'icalendar/tzinfo'
|
||||
|
||||
cals = Icalendar::Calendar.parse(ics)
|
||||
@events = cals.first.events
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user