mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
return location on header
This commit is contained in:
parent
5733dbf45e
commit
83e51a6501
@ -53,6 +53,7 @@ public class LabelController extends BaseController {
|
|||||||
final Label label = createLabel(restLabel);
|
final Label label = createLabel(restLabel);
|
||||||
|
|
||||||
// Return the new created label ...
|
// Return the new created label ...
|
||||||
|
response.setHeader("Location", "/service/labels/" + label.getId());
|
||||||
response.setHeader("ResourceId", Integer.toString(label.getId()));
|
response.setHeader("ResourceId", Integer.toString(label.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user