bootstrap basic layout

This commit is contained in:
Min Zeya Phyo
2017-04-04 02:29:03 +06:30
parent 23998e9f31
commit 7595ed183b
7 changed files with 26 additions and 113 deletions

View File

@@ -1,10 +1,14 @@
Rails.application.routes.draw do
root 'home#index'
#Login for Web
post 'authenticate' => 'home#create'
delete 'authenticate' => 'home/destroy'
namespace :api, :defaults => { :format => 'json' } do
#Session Login and Logout
post 'autheticate' => "autheticate#create"
delete 'autheticate' => "autheticate#destroy"
post 'authenticate' => "autheticate#create"
delete 'authenticate' => "autheticate#destroy"
namespace :restaurant do
get 'zones' => "zones#index"