From: Gustavo Martin Morcuende Date: Sun, 2 Oct 2016 22:24:03 +0000 (+0200) Subject: Update dml X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=031df997dc870b026ecdd00d9444c0fa9ccaef6c;p=WebAppTest%2F.git Update dml --- diff --git a/src/main/resources/liquibase/dml.sql b/src/main/resources/liquibase/dml.sql index abbb353..477d055 100644 --- a/src/main/resources/liquibase/dml.sql +++ b/src/main/resources/liquibase/dml.sql @@ -7,24 +7,24 @@ INSERT INTO APPLICATION_ROLE (CODE,DESCRIPTION) values INSERT INTO APPLICATION_RESOURCE (URL_PATTERN, HTTP_METHOD) values -('/app/page_1.html', 'GET'), -('/app/page_2.html', 'GET'), -('/app/page_3.html', 'GET'), -('/app/{username}', 'GET'), -('/app/{username}', 'PUT'), -('/app/{username}', 'POST'); +('/app/pages/page_1.html', 'GET'), +('/app/pages/page_2.html', 'GET'), +('/app/pages/page_3.html', 'GET'), +('/app/api/{username}', 'GET'), +('/app/api/{username}', 'PUT'), +('/app/api/{username}', 'POST'); INSERT INTO APPLICATION_RESOURCE_APPLICATION_ROLE (APPLICATION_RESOURCE_URL_PATTERN, APPLICATION_RESOURCE_HTTP_METHOD, APPLICATION_ROLE_CODE) values -('/app/page_1.html', 'GET', 'ROLE_APP_PAGE_1'), -('/app/page_2.html', 'GET', 'ROLE_APP_PAGE_2'), -('/app/page_3.html', 'GET', 'ROLE_APP_PAGE_3'), -('/app/{username}', 'GET', 'ROLE_APP_PAGE_1'), -('/app/{username}', 'GET', 'ROLE_APP_PAGE_2'), -('/app/{username}', 'GET', 'ROLE_APP_PAGE_3'), -('/app/{username}', 'GET', 'ROLE_APP_ADMIN'), -('/app/{username}', 'PUT', 'ROLE_APP_ADMIN'), -('/app/{username}', 'POST', 'ROLE_APP_ADMIN'); +('/app/pages/page_1.html', 'GET', 'ROLE_APP_PAGE_1'), +('/app/pages/page_2.html', 'GET', 'ROLE_APP_PAGE_2'), +('/app/pages/page_3.html', 'GET', 'ROLE_APP_PAGE_3'), +('/app/api/{username}', 'GET', 'ROLE_APP_PAGE_1'), +('/app/api/{username}', 'GET', 'ROLE_APP_PAGE_2'), +('/app/api/{username}', 'GET', 'ROLE_APP_PAGE_3'), +('/app/api/{username}', 'GET', 'ROLE_APP_ADMIN'), +('/app/api/{username}', 'PUT', 'ROLE_APP_ADMIN'), +('/app/api/{username}', 'POST', 'ROLE_APP_ADMIN'); INSERT INTO ACCOUNT (CODE, NAME, SURNAME, PASSWORD, APPLICATION_ROLE_CODE) values