14 lines
281 B
Ruby
14 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "hanami/middleware/body_parser"
|
|
|
|
module Adamantium
|
|
class Routes < Hanami::Routes
|
|
use Hanami::Middleware::BodyParser, [:form, :json]
|
|
|
|
slice :main, at: "/"
|
|
slice :admin, at: "/admin"
|
|
slice :micropub, at: "/micropub"
|
|
end
|
|
end
|